[PATCH] D41720: [clang-tidy] Add a -show-color flag.

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 01:33:27 PST 2018


alexfh added inline comments.


================
Comment at: test/clang-tidy/show-color.cpp:7
+  int *value = 0;
+  // CHECK-COLOR: [[BOLD:.\[1m]]{{.*}}[[@LINE+2]]:10: [[RESET:.\[0m]][[MAGENTA:.\[0;1;35m]]warning: [[RESET]][[BOLD]]Dereference of null pointer (loaded from variable 'value') [clang-analyzer-core.NullDereference][[RESET]]
+  // CHECK-NO-COLOR: [[@LINE+1]]:10: warning: Dereference of null pointer (loaded from variable 'value') [clang-analyzer-core.NullDereference]
----------------
nit: I'd prefer to depend on the wording and format of static analyzer warnings only where necessary.  Static analyzer is in a different repository and when it changes, it's a bit more difficult for folks to detect failures in clang-tidy. Here we could use any native clang-tidy check instead.


https://reviews.llvm.org/D41720





More information about the cfe-commits mailing list