Use functions with prototypes when appropriate; NFCA significant number of our tests in C accidentally use functionswithout prototypes. This patch converts the function signatures to havea protot
Use functions with prototypes when appropriate; NFCA significant number of our tests in C accidentally use functionswithout prototypes. This patch converts the function signatures to havea prototype for the situations where the test is not specific to K&R Cdeclarations. e.g., void func();becomes void func(void);This is the sixth batch of tests being updated (there are a significantnumber of other tests left to be updated).
show more ...
Track skipped files in dependency scanning.It's possible for a header to be a symlink to another header. In thiscase both will be represented by clang::FileEntry with the same UID andthey'll use
Track skipped files in dependency scanning.It's possible for a header to be a symlink to another header. In thiscase both will be represented by clang::FileEntry with the same UID andthey'll use the same clang::HeaderFileInfo.If you include both headers and use some single-inclusion mechanismlike a header guard or #import, one header will get a FileChangedcallback, and another FileSkipped.So that we get an accurate dependency file, we therefore need to alsoimplement the FileSkipped callback in dependency scanning.Patch by Pete Cooper.Reviewers: bruno, peteReviewed By: brunoSubscribers: cfe-commits, jkorous, vsapsaiDifferential Revision: https://reviews.llvm.org/D30881llvm-svn: 331319
Add test coverage for recent behavior change in GNU line marker pre-processingllvm-svn: 303642
Give files from #line the characteristics of the current fileThis allows #line directives to appear in system headers that have codethat clang would normally warn on. This is compatible with GCC,
Give files from #line the characteristics of the current fileThis allows #line directives to appear in system headers that have codethat clang would normally warn on. This is compatible with GCC, which iseasy to test by running `gcc -E`.Fixes PR30752llvm-svn: 303582
Add -isystem-prefix and -ino-system-prefix arguments, which can be used tooverride whether headers are system headers by checking for prefixes of theheader name specified in the #include directive.
Add -isystem-prefix and -ino-system-prefix arguments, which can be used tooverride whether headers are system headers by checking for prefixes of theheader name specified in the #include directive.This allows warnings to be disabled for third-party code which is found inspecific subdirectories of include paths.llvm-svn: 158418