Lines Matching defs:Unit
843 /// of all macros that have been defined by the translation unit.
880 ASTUnit &Unit;
885 : Unit(_Unit), Hash(Hash) {
901 Unit.addTopLevelDecl(D);
907 Unit.addFileLevelDecl(D);
930 return Unit.getDeserializationListener();
936 ASTUnit &Unit;
941 new MacroDefinitionTrackerPPCallbacks(Unit.getCurrentTopLevelHashValue()));
942 return new TopLevelDeclTrackerConsumer(Unit,
943 Unit.getCurrentTopLevelHashValue());
947 TopLevelDeclTrackerAction(ASTUnit &_Unit) : Unit(_Unit) {}
951 return Unit.getTranslationUnitKind();
956 ASTUnit &Unit;
961 PrecompilePreambleConsumer(ASTUnit &Unit, const Preprocessor &PP,
963 : PCHGenerator(PP, "", 0, isysroot, Out), Unit(Unit),
964 Hash(Unit.getCurrentTopLevelHashValue()) {
985 if (!Unit.getDiagnostics().hasErrorOccurred()) {
991 Unit.addTopLevelDeclFromPreamble(
998 ASTUnit &Unit;
1001 explicit PrecompilePreambleAction(ASTUnit &Unit) : Unit(Unit) {}
1017 new MacroDefinitionTrackerPPCallbacks(Unit.getCurrentTopLevelHashValue()));
1018 return new PrecompilePreambleConsumer(Unit, CI.getPreprocessor(), Sysroot,
1057 /// Parse the source file into a translation unit using the given compiler
1058 /// invocation, replacing the current translation unit.
1061 /// contain any translation-unit information, false otherwise.
1744 ASTUnit *Unit,
1757 ASTUnit *AST = Unit;
1759 // Create the AST unit.
1918 // Create the AST unit.
2004 // Create the AST unit.
2097 // unit; it'll be recreated if necessary.