]> granicus.if.org Git - clang/commit
clang-format: Improve support for override/final as variable names.
authorDaniel Jasper <djasper@google.com>
Mon, 9 Jan 2017 11:04:07 +0000 (11:04 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 9 Jan 2017 11:04:07 +0000 (11:04 +0000)
commit5450c954e6f99bca336305e45a31edbc721d6271
tree1e2e5be6db252f6a7a0176bc54af841ea3ca60e6
parent0560207d98587df0cf66e990efa7a610cae7dcd8
clang-format: Improve support for override/final as variable names.

Before:
  bool a = f() &&override.f();
  bool a = f() &&final.f();
  void f(const MyOverride & override);
  void f(const MyFinal & final);

After:
  bool a = f() && override.f();
  bool a = f() && final.f();
  void f(const MyOverride &override);
  void f(const MyFinal &final);

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291434 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp