diff options
author | Reid Kleckner <rnk@google.com> | 2019-09-12 17:55:48 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-09-12 17:55:48 +0000 |
commit | b00a49d1b3a146b02d2277a463ef7618a9c29806 (patch) | |
tree | 640098decbb3d13128c83bff24f3d793fc89ed1a /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 6943472d45aa4eda7392ee312d68d9cf2fc55f9f (diff) | |
download | llvm-b00a49d1b3a146b02d2277a463ef7618a9c29806.zip llvm-b00a49d1b3a146b02d2277a463ef7618a9c29806.tar.gz llvm-b00a49d1b3a146b02d2277a463ef7618a9c29806.tar.bz2 |
Don't warn about selectany on implicitly inline variables
Summary:
This avoids a -Wignored-attribute warning on the code pattern Microsoft
recommends for integral const static data members defined in headers
here:
https://docs.microsoft.com/en-us/cpp/build/reference/microsoft-extensions-to-c-and-cpp?view=vs-2019
The attribute is redundant, but it is necessary when compiling in C++14
modes with /Za, which disables MSVC's extension that treats such
variables as implicitly inline.
Fixes PR43270
Reviewers: epastor, thakis, hans
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67426
llvm-svn: 371749
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions