First wave of changes to support "blocks" (an extension to C).
This commit adds the declaration syntax (and associated type).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55417 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h
index def23e6..b1bdeba 100644
--- a/include/clang/Basic/LangOptions.h
+++ b/include/clang/Basic/LangOptions.h
@@ -48,6 +48,7 @@
unsigned ThreadsafeStatics : 1; // Whether static initializers are protected
// by lockis.
+ unsigned Blocks : 1; // block extension to C
private:
unsigned GC : 2; // Objective-C Garbage Collection modes. We declare
// this enum as unsigned because MSVC insists on making enums
@@ -66,6 +67,7 @@
// FIXME: The default should be 1.
ThreadsafeStatics = 0;
+ Blocks = 1;
}
GCMode getGCMode() const { return (GCMode) GC; }