aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/warn-using-namespace-in-header.cpp
AgeCommit message (Collapse)AuthorFilesLines
2013-08-22Split isFromMainFile into two functions.Eli Friedman1-0/+9
Basically, isInMainFile considers line markers, and isWrittenInMainFile doesn't. Distinguishing between the two is useful when dealing with files which are preprocessed files or rewritten with -frewrite-includes (so we don't, for example, print useless warnings). llvm-svn: 188968
2012-11-05Delete comment I forgot to delete in my last change.Nico Weber1-2/+0
llvm-svn: 167418
2012-11-05Use Richard's BE_THE_HEADER trick to simplify a test. No intended behavior ↵Nico Weber1-45/+53
change. llvm-svn: 167417
2011-04-02Make -Wheader-hygiene not complain about USING_NAMESPACE_THROUGH_MACRO in a ↵Nico Weber1-0/+27
non-header file. llvm-svn: 128780
2011-03-26Improve -Wheader-hygiene to warn about using directives inside linkageDouglas Gregor1-0/+18
specifications within the global scope, from Elliot Glaysher. llvm-svn: 128352
2011-03-18Add an opt-in -Wheader-hygiene, which current diagnoses the use ofDouglas Gregor1-0/+9
global using directives in C++ headers, from Elliot Glaysher! llvm-svn: 127881