]> granicus.if.org Git - clang/commit
Teach clang-format to understand static_asserts better.
authorDaniel Jasper <djasper@google.com>
Thu, 1 Aug 2013 17:58:23 +0000 (17:58 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 1 Aug 2013 17:58:23 +0000 (17:58 +0000)
commitb7000ca629da16164f0073f5a7f9459ddf5ba281
treeb7c5643db0cfb56ef3c4ed880be3478b8929d830
parent05c06c069a748cfe97259fec6b8e54028ba7aadf
Teach clang-format to understand static_asserts better.

Before:
  template <bool B, bool C>
  class A {
    static_assert(B &&C, "Something is wrong");
  };

After:
  template <bool B, bool C>
  class A {
    static_assert(B && C, "Something is wrong");
  };

(Note the spacing around '&&'). Also change the identifier table to always
understand all C++11 keywords (which seems like the right thing to do).

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