logic: Added PCH support to CDB source groups (issue #311)
* added PCH Flags list and checkbox to reuse compiler flags and cdb flags to source group setup * added UI tests for C++ and CDB source groups
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef FOO_H
|
||||
#define FOO_H
|
||||
|
||||
#include "FooBar.h"
|
||||
|
||||
#ifndef COMPILER_FLAG
|
||||
#error "COMPILER_FLAG not defined"
|
||||
#else
|
||||
|
||||
class Bar : public FooBar
|
||||
{
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // FOO_H
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef BAR_H
|
||||
#define BAR_H
|
||||
|
||||
#include "FooBar.h"
|
||||
|
||||
#ifndef CDB_FLAG
|
||||
#error "CDB_FLAG not defined"
|
||||
#endif
|
||||
|
||||
class Foo : public FooBar
|
||||
{
|
||||
};
|
||||
|
||||
#endif // FOO_BAR_H
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef FOO_BAR_H
|
||||
#define FOO_BAR_H
|
||||
|
||||
class FooBar
|
||||
{
|
||||
};
|
||||
|
||||
#endif // FOO_BAR_H
|
||||
@@ -0,0 +1,8 @@
|
||||
#include "pch.h"
|
||||
|
||||
void test()
|
||||
{
|
||||
Foo foo;
|
||||
Bar bar;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
#ifndef PCH_FLAG
|
||||
#error "PCH_FLAG not defined"
|
||||
#else
|
||||
|
||||
#include "Foo.h"
|
||||
#include "Bar.h"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user