Bug 1503453 - Fix Perma 'mach static-analysis autotest; caused by Bug 1540769. r=sylvestre
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Thu, 04 Apr 2019 11:34:47 +0000
changeset 467971 a0adda35967e606236d485d2be5ff2825dffec59
parent 467970 8cfc47737c533f9cb8b584c3b86292c0e0c8b255
child 467972 f98617ff7cf585b77a60e90f9ba3f191d09ec653
push id112667
push useraiakab@mozilla.com
push dateThu, 04 Apr 2019 16:12:45 +0000
treeherdermozilla-inbound@230bb363f2f3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssylvestre
bugs1503453, 1540769
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1503453 - Fix Perma 'mach static-analysis autotest; caused by Bug 1540769. r=sylvestre Differential Revision: https://phabricator.services.mozilla.com/D26095
tools/clang-tidy/test/readability-redundant-preprocessor.cpp
tools/clang-tidy/test/readability-redundant-preprocessor.json
new file mode 100644
--- /dev/null
+++ b/tools/clang-tidy/test/readability-redundant-preprocessor.cpp
@@ -0,0 +1,5 @@
+#ifndef FOO
+#ifdef FOO // inner ifdef is considered redundant
+void f();
+#endif
+#endif
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/tools/clang-tidy/test/readability-redundant-preprocessor.json
@@ -0,0 +1,1 @@
+[["warning", "nested redundant #ifdef; consider removing it", "readability-redundant-preprocessor"]]
\ No newline at end of file