Commit Graph

5 Commits

Author SHA1 Message Date
Eli Friedman 24146975f1 Split isFromMainFile into two functions.
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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188968 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-22 00:27:10 +00:00
Argyrios Kyrtzidis 95b59eae35 Reenable test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134928 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-11 21:58:47 +00:00
Eli Friedman df574f0ac2 Test is broken; XFAIL it until Argyrios gets a chance to look at it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134925 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-11 21:44:14 +00:00
Argyrios Kyrtzidis 1f8dcfca6c Don't warn for unused macro when undef'ing it, if it comes from an included file. rdar://9745065
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134919 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-11 20:39:47 +00:00
Argyrios Kyrtzidis a33e0504f6 When redefining a macro don't warn twice if it's not used and don't warn for duplicate
definition by command line options. Fixes rdar://8875916.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123767 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-18 19:50:15 +00:00