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 fifth batch of tests being updated (there are a significantnumber of other tests left to be updated).Note, the behavior of -ast-print is broken. It prints functions with aprototype (void) as if they have no prototype () in C. Some tests needto disable strict prototype checking when recompiling the results of an-ast-print invocation.
show more ...
[ASTImporter] Add support for importing GenericSelectionExpr AST nodes.This allows ASTs to be merged when they contain GenericSelectionExprnodes (this is _Generic from C11). This is needed, for ex
[ASTImporter] Add support for importing GenericSelectionExpr AST nodes.This allows ASTs to be merged when they contain GenericSelectionExprnodes (this is _Generic from C11). This is needed, for example, forCTU analysis of C code that makes use of _Generic, like the Linuxkernel.The node is already supported in the AST, but it didn't have a matcherin ASTMatchers. So, this change adds the matcher and adds support toASTImporter. Additionally, this change adds support for structuralequivalence of _Generic in the AST.Reviewed By: martong, aaron.ballmanDifferential Revision: https://reviews.llvm.org/D92600