aboutsummaryrefslogtreecommitdiff
path: root/clang-format
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-07 19:08:19 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-07 19:08:19 +0000
commitcf2f8107d1f86f6363df00a79c575b75e9528c59 (patch)
tree1f2a53475cf97c5de40b40e4fc5943d1144915c6 /clang-format
parent3724483b7e0c0fe36a65e164159caaadf58b1c9d (diff)
Enabled ObjC2 in clang-format for @package. Matches r171766.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-format')
-rw-r--r--clang-format/ClangFormat.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-format/ClangFormat.cpp b/clang-format/ClangFormat.cpp
index 7a7c6c2e..e3bf3eb0 100644
--- a/clang-format/ClangFormat.cpp
+++ b/clang-format/ClangFormat.cpp
@@ -62,6 +62,7 @@ static void format() {
LangOpts.CPlusPlus = 1;
LangOpts.CPlusPlus11 = 1;
LangOpts.ObjC1 = 1;
+ LangOpts.ObjC2 = 1;
Lexer Lex(ID, Sources.getBuffer(ID), Sources, LangOpts);
SourceLocation Start =
Sources.getLocForStartOfFile(ID).getLocWithOffset(Offset);