forked from OSchip/llvm-project
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:
parent
a887650cf6
commit
d9a440d21f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue