aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/LangOptions.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-20 15:44:26 +0000
committerChris Lattner <sabre@nondot.org>2009-03-20 15:44:26 +0000
commit7e9c90b1a7402dfeca87980cb07e36bedc1a42b8 (patch)
tree0ac394236fb2dc7944dba40eb9e43f5cfa7a436a /include/clang/Basic/LangOptions.h
parent38dd3d54186cf44ea9d37f463c3f2800ab526b82 (diff)
add a new LangOptions::GNUMode bit to distinguish between GNU99 and C99 etc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r--include/clang/Basic/LangOptions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h
index ee04439cad..b49d500470 100644
--- a/include/clang/Basic/LangOptions.h
+++ b/include/clang/Basic/LangOptions.h
@@ -26,6 +26,7 @@ public:
unsigned BCPLComment : 1; // BCPL-style '//' comments.
unsigned DollarIdents : 1; // '$' allowed in identifiers.
unsigned AsmPreprocessor : 1; // Preprocessor in asm mode.
+ unsigned GNUMode : 1; // True in gnu99 mode false in c99 mode (etc)
unsigned ImplicitInt : 1; // C89 implicit 'int'.
unsigned Digraphs : 1; // C94, C99 and C++
unsigned HexFloats : 1; // C99 Hexadecimal float constants.
@@ -71,7 +72,7 @@ public:
LangOptions() {
Trigraphs = BCPLComment = DollarIdents = AsmPreprocessor = 0;
- ImplicitInt = Digraphs = 0;
+ GNUMode = ImplicitInt = Digraphs = 0;
HexFloats = 0;
GC = ObjC1 = ObjC2 = ObjCNonFragileABI = 0;
C99 = Microsoft = CPlusPlus = CPlusPlus0x = NoExtensions = 0;