forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from RedpointGames/iwyu-detection
Add include-what-you-use detection to find unneeded headers
- Loading branch information
Showing
29 changed files
with
1,287 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
void PPLexWithUnrealAnnotationTokens(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Unreal stacks. | ||
struct UnrealSpecifierSema { | ||
tok::TokenKind Kind; | ||
clang::UnrealSpecifier SpecData; | ||
clang::SourceLocation Loc; | ||
UnrealSpecifierSema(tok::TokenKind InKind, | ||
const clang::UnrealSpecifier &InSpecData, | ||
const clang::SourceLocation &InLoc) | ||
: Kind(InKind), SpecData(InSpecData), Loc(InLoc){}; | ||
}; | ||
std::vector<UnrealSpecifierSema> UnrealStack; | ||
std::map<std::string, CXXRecordDecl *> | ||
ExpectedIInterfaceToUInterfaceAttachments; | ||
|
||
void ActOnUnrealData(SourceLocation TokenLoc, tok::TokenKind Kind, | ||
const UnrealSpecifier &UnrealData); | ||
|
||
/// Called to add specifiers from the Unreal stack. | ||
void AddUnrealSpecifiersForDecl(Decl *RD); | ||
|
||
void ProcessUnrealInterfaceMappings(TagDecl* New); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.