aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/LangOptions.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-05 06:32:51 +0000
committerChris Lattner <sabre@nondot.org>2008-04-05 06:32:51 +0000
commitd658b562e80d6ef7a1118e34ff12802c6e2fcced (patch)
tree702deb2a68acdb5c9cc32f9a39e1982b829c3764 /include/clang/Basic/LangOptions.h
parenta798ebc82627ea9cb7a00da07d2b60f9f2114f69 (diff)
Fix handling of implicit int, resolving PR2012 and reverting (and
subsuming) my patch for PR1999. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r--include/clang/Basic/LangOptions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h
index 947492f04f..3975c51b9f 100644
--- a/include/clang/Basic/LangOptions.h
+++ b/include/clang/Basic/LangOptions.h
@@ -22,8 +22,9 @@ namespace clang {
/// enabled, which controls the dialect of C that is accepted.
struct LangOptions {
unsigned Trigraphs : 1; // Trigraphs in source files.
- unsigned BCPLComment : 1; // BCPL-style // comments.
+ unsigned BCPLComment : 1; // BCPL-style '//' comments.
unsigned DollarIdents : 1; // '$' allowed in identifiers.
+ unsigned ImplicitInt : 1; // C89 implicit 'int'.
unsigned Digraphs : 1; // C94, C99 and C++
unsigned HexFloats : 1; // C99 Hexadecimal float constants.
unsigned C99 : 1; // C99 Support
@@ -42,15 +43,14 @@ struct LangOptions {
unsigned LaxVectorConversions : 1;
LangOptions() {
- Trigraphs = BCPLComment = DollarIdents = Digraphs = HexFloats = 0;
+ Trigraphs = BCPLComment = DollarIdents = ImplicitInt = Digraphs = 0;
+ HexFloats = 0;
ObjC1 = ObjC2 = 0;
C99 = Microsoft = CPlusPlus = CPlusPlus0x = NoExtensions = 0;
CXXOperatorNames = PascalStrings = Boolean = WritableStrings = 0;
LaxVectorConversions = 0;
}
- bool isC90() const { return !C99 && !CPlusPlus; }
-
/// Emit - Emit this LangOptions object to bitcode.
void Emit(llvm::Serializer& S) const;