summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-07 15:21:13 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-07 15:21:13 +0000
commitd9a440d21fdf2e9bb4cfc3926b639af10b6438c3 (patch)
tree5f0ce7c92c4e1c297c67b45133f81ca8148a9e1b /clang-tools-extra
parenta887650cf6449bb300cf9d64776ed37fc1dc5a7c (diff)
downloadbcm5719-llvm-d9a440d21fdf2e9bb4cfc3926b639af10b6438c3.tar.gz
bcm5719-llvm-d9a440d21fdf2e9bb4cfc3926b639af10b6438c3.zip
Set LangOpts.ObjC1 to 1 in clang-format.
This matches the test change done in clang at r171742. Without this, clang-format would strip '@' characters and format e.g. '@interface' as 'interface'. llvm-svn: 171743
Diffstat (limited to 'clang-tools-extra')
-rw-r--r--clang-tools-extra/clang-format/ClangFormat.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-format/ClangFormat.cpp b/clang-tools-extra/clang-format/ClangFormat.cpp
index 0f7a33c06da..7a7c6c2ef49 100644
--- a/clang-tools-extra/clang-format/ClangFormat.cpp
+++ b/clang-tools-extra/clang-format/ClangFormat.cpp
@@ -61,6 +61,7 @@ static void format() {
LangOptions LangOpts;
LangOpts.CPlusPlus = 1;
LangOpts.CPlusPlus11 = 1;
+ LangOpts.ObjC1 = 1;
Lexer Lex(ID, Sources.getBuffer(ID), Sources, LangOpts);
SourceLocation Start =
Sources.getLocForStartOfFile(ID).getLocWithOffset(Offset);
OpenPOWER on IntegriCloud