[PATCH] D18396: Clang-tidy:modernize-use-override. Fix for __declspec attributes and const=0 without spacse
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 31 15:56:37 PDT 2016
alexfh added a comment.
In http://reviews.llvm.org/D18396#388287, @Rob wrote:
> I tried
>
> check_clang_tidy.py modernize-use-override-ms.cpp modernize-use-override temp -- -- -fms-extensions
It also needs -std=c++11, which needs to be specified, when you specify any options manually.
> and
>
> check_clang_tidy.py modernize-use-override-ms.cpp modernize-use-override temp
>
> on OSX and nethier work as expected.
>
> So instead I have changed the test to use visibility attributes when _MSC_VER is not defined.
... which means that the code is not tested on non-windows platforms, though it could be.
> Also updated the release notes.
Thanks!
================
Comment at: test/clang-tidy/modernize-use-override-ms.cpp:1
@@ +1,2 @@
+// RUN: %check_clang_tidy %s modernize-use-override %t
+
----------------
aaron.ballman wrote:
> I *think* this run line may require -fms-extensions in order to compile under non-MSVC-built versions of clang because of the __declspec.
I've just tried this on Linux and it actually needs `-fms-extensions` (actually, you'll need to append `-- -- -std=c++11 -fms-extensions`).
http://reviews.llvm.org/D18396
More information about the cfe-commits
mailing list