diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-11 16:09:04 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-11 16:09:04 +0000 |
commit | 088dab50b76d235cd5b0e701048efccfcea3677e (patch) | |
tree | 83c7ce83c92fe63b27d07d728ff5aec433e1d3c2 /lib/Format/Format.cpp | |
parent | 276a209451b8724807f2741f49c90bf27fc280c7 (diff) |
Correct spacing around new and delete.
This fixes llvm.org/PR14913.
Before: A *a = new(placement) A;
After: A *a = new (placement) A;
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 56bb6ec426..38d39bca63 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -1063,7 +1063,8 @@ private: return CurrentLineType == LT_ObjCDecl || Left.is(tok::kw_if) || Left.is(tok::kw_for) || Left.is(tok::kw_while) || Left.is(tok::kw_switch) || Left.is(tok::kw_return) || - Left.is(tok::kw_catch); + Left.is(tok::kw_catch) || Left.is(tok::kw_new) || + Left.is(tok::kw_delete); } if (Left.is(tok::at) && Right.FormatTok.Tok.getObjCKeywordID() != tok::objc_not_keyword) |