mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
C++: Force LF for .c,.cpp,.h,.hpp
This commit is contained in:
@@ -1,41 +1,41 @@
|
||||
class A {
|
||||
|
||||
};
|
||||
|
||||
|
||||
class B {
|
||||
|
||||
};
|
||||
|
||||
class C: A, B {
|
||||
|
||||
};
|
||||
|
||||
class D: C {
|
||||
|
||||
class E;
|
||||
|
||||
};
|
||||
|
||||
class D::E {
|
||||
|
||||
class F;
|
||||
|
||||
class G {
|
||||
public:
|
||||
/* Non-trivial constructor and destructor */
|
||||
G() { 0; }
|
||||
~G() { 0; }
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
class D::E::F: D::E::G {
|
||||
/* Should have generated constructor and destructor, because of D::E::G */
|
||||
|
||||
static int m() {
|
||||
D::E::F def; /* Should trigger creation of D::E::F's generated constructor and destructor. */
|
||||
}
|
||||
};
|
||||
|
||||
// semmle-extractor-options: --microsoft
|
||||
class A {
|
||||
|
||||
};
|
||||
|
||||
|
||||
class B {
|
||||
|
||||
};
|
||||
|
||||
class C: A, B {
|
||||
|
||||
};
|
||||
|
||||
class D: C {
|
||||
|
||||
class E;
|
||||
|
||||
};
|
||||
|
||||
class D::E {
|
||||
|
||||
class F;
|
||||
|
||||
class G {
|
||||
public:
|
||||
/* Non-trivial constructor and destructor */
|
||||
G() { 0; }
|
||||
~G() { 0; }
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
class D::E::F: D::E::G {
|
||||
/* Should have generated constructor and destructor, because of D::E::G */
|
||||
|
||||
static int m() {
|
||||
D::E::F def; /* Should trigger creation of D::E::F's generated constructor and destructor. */
|
||||
}
|
||||
};
|
||||
|
||||
// semmle-extractor-options: --microsoft
|
||||
|
||||
Reference in New Issue
Block a user