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
This commit is contained in:
Nico Weber 2013-01-07 15:21:13 +00:00
parent a887650cf6
commit d9a440d21f
1 changed files with 1 additions and 0 deletions

View File

@ -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);