summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/inline.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace remaining user-visible mentions of C++1z with C++17.Richard Smith2017-08-131-3/+3
| | | | llvm-svn: 310804
* C does not have inline variables.Paul Robinson2016-07-141-0/+13
| | | | | | | | Add a few missing tests for related C++ diagnostics. Differential Revision: http://reviews.llvm.org/D22113 llvm-svn: 275493
* Remove -Winternal-linkage-in-inline in C++.Jordan Rose2012-06-201-105/+0
| | | | | | | | | | | | | | | | It's very easy for anonymous external linkage to propagate in C++ through return types and parameter types. Likewise, it's possible that a template containing an inline function is only used with parameters that have internal linkage. Actually diagnosing where the internal linkage comes from is fairly difficult (both to locate and then to print nicely). Finally, since we only have one translation unit available, we can't even prove that any of this violates the ODR. This warning needs better-defined behavior in C++ before it can really go in. Rewording of the C warning (which /is/ specified by C99) coming shortly. llvm-svn: 158836
* Change -Winternal-linkage-in-inline from ExtWarn to Warning in C++.Jordan Rose2012-06-181-4/+4
| | | | | | | | | | Per post-commit review, it's not appropriate to use ExtWarn in C++, because we can't prove that the inline function will actually be defined in more than one place (and thus we can't prove that this violates the ODR). This removes the warning entirely from uses in the main source file in C++. llvm-svn: 158689
* Support -Winternal-linkage-in-inline in C++ code.Jordan Rose2012-06-181-0/+105
| | | | | | | | 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. llvm-svn: 158683
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Diagnose uses of function specifiers on declarations which don't declareEli Friedman2009-04-071-0/+5
functions. Fixes PR3941. llvm-svn: 68541
OpenPOWER on IntegriCloud