diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-09-24 09:44:55 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-09-24 09:44:55 +0000 |
commit | e07376a320db99bacb6466ef515acd4cbb830175 (patch) | |
tree | 20e93c27ef9736dd9a289213135ff0f76bbd4969 /clang-tools-extra/modularize/Modularize.cpp | |
parent | 2d810475d4d8f96129d14c475ec448045b013e16 (diff) | |
download | bcm5719-llvm-e07376a320db99bacb6466ef515acd4cbb830175.tar.gz bcm5719-llvm-e07376a320db99bacb6466ef515acd4cbb830175.zip |
[modularize] Fix compilation warning after r372681
In r372681 lang_cxx_11 and lang_cxx_14 were added to LanguageIDs
but they were not handled in the switch in VisitLinkageSpecDecl in
Modularize.cpp so at clang 8 complained with
/data/repo/master/clang-tools-extra/modularize/Modularize.cpp:583:13: error: enumeration values 'lang_cxx_11' and 'lang_cxx_14' not handled in switch [-Werror,-Wswitch]
switch (D->getLanguage()) {
^
1 error generated.
With this patch we now treat lang_cxx, lang_cxx_11 and lang_cxx_14 the
same way in the switch in VisitLinkageSpecDecl.
llvm-svn: 372714
Diffstat (limited to 'clang-tools-extra/modularize/Modularize.cpp')
-rw-r--r-- | clang-tools-extra/modularize/Modularize.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/modularize/Modularize.cpp b/clang-tools-extra/modularize/Modularize.cpp index 1905fdf4e2a..8d48324700e 100644 --- a/clang-tools-extra/modularize/Modularize.cpp +++ b/clang-tools-extra/modularize/Modularize.cpp @@ -585,6 +585,8 @@ public: LinkageLabel = "extern \"C\" {}"; break; case LinkageSpecDecl::lang_cxx: + case LinkageSpecDecl::lang_cxx_11: + case LinkageSpecDecl::lang_cxx_14: LinkageLabel = "extern \"C++\" {}"; break; } |