]> granicus.if.org Git - clang/commit
Support -Winternal-linkage-in-inline in C++ code.
authorJordan Rose <jordan_rose@apple.com>
Mon, 18 Jun 2012 22:09:19 +0000 (22:09 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 18 Jun 2012 22:09:19 +0000 (22:09 +0000)
commit0eb3f45a92f706d50de55aefb19d66febfba78aa
tree9a2ae3b197b5a70181a405474f11acf49cb08852
parentdceccacff28d00717774300f5fe0067286ac65bf
Support -Winternal-linkage-in-inline in C++ code.

This includes treating anonymous namespaces like internal linkage, and allowing
const variables to be used even if internal. The whole thing's been broken out
into a separate function to avoid nested ifs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158683 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/Sema/inline.c
test/SemaCXX/inline.cpp