diff options
author | Francois Ferrand <thetypz@gmail.com> | 2019-06-06 20:06:23 +0000 |
---|---|---|
committer | Francois Ferrand <thetypz@gmail.com> | 2019-06-06 20:06:23 +0000 |
commit | e8a301f87f75b7743a62077ac60fe06739fbab4b (patch) | |
tree | 3ef20f94b8d870923625788e3c8a9d5154534da2 /llvm/lib/CodeGen/LatencyPriorityQueue.cpp | |
parent | f1d9b3180e6197674c26463ef193316333a03805 (diff) | |
download | bcm5719-llvm-e8a301f87f75b7743a62077ac60fe06739fbab4b.tar.gz bcm5719-llvm-e8a301f87f75b7743a62077ac60fe06739fbab4b.zip |
clang-format: better handle namespace macros
Summary:
Other macros are used to declare namespaces, and should thus be handled
similarly. This is the case for crpcut's TESTSUITE macro, or for
unittest-cpp's SUITE macro:
TESTSUITE(Foo) {
TEST(MyFirstTest) {
assert(0);
}
} // TESTSUITE(Foo)
This patch deals with this cases by introducing a new option to specify
lists of namespace macros. Internally, it re-uses the system already in
place for foreach and statement macros, to ensure there is no impact on
performance.
Reviewers: krasimir, djasper, klimek
Reviewed By: klimek
Subscribers: acoomans, cfe-commits, klimek
Tags: #clang
Differential Revision: https://reviews.llvm.org/D37813
llvm-svn: 362740
Diffstat (limited to 'llvm/lib/CodeGen/LatencyPriorityQueue.cpp')
0 files changed, 0 insertions, 0 deletions