[cfe-commits] [clang-tools-extra] r171767 - /clang-tools-extra/trunk/clang-format/ClangFormat.cpp

Nico Weber nicolasweber at gmx.de
Mon Jan 7 11:08:19 PST 2013


Author: nico
Date: Mon Jan  7 13:08:19 2013
New Revision: 171767

URL: http://llvm.org/viewvc/llvm-project?rev=171767&view=rev
Log:
Enabled ObjC2 in clang-format for @package. Matches r171766.


Modified:
    clang-tools-extra/trunk/clang-format/ClangFormat.cpp

Modified: clang-tools-extra/trunk/clang-format/ClangFormat.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-format/ClangFormat.cpp?rev=171767&r1=171766&r2=171767&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-format/ClangFormat.cpp (original)
+++ clang-tools-extra/trunk/clang-format/ClangFormat.cpp Mon Jan  7 13:08:19 2013
@@ -62,6 +62,7 @@
   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);





More information about the cfe-commits mailing list