Implement computePreambleBound and collect has_include in PPCallbacks (#44)

This commit is contained in:
ykiko
2025-01-18 20:46:18 +08:00
committed by GitHub
parent f419e7ee20
commit 8cbfcba790
51 changed files with 1350 additions and 1023 deletions

View File

@@ -22,9 +22,9 @@ struct Rule {
};
/// This class is responsible for managing all opened files.
class FileController {
class Scheduler {
public:
FileController(CompilationDatabase& database, llvm::ArrayRef<Rule> rules) :
Scheduler(CompilationDatabase& database, llvm::ArrayRef<Rule> rules) :
database(database), rules(rules) {}
async::Task<> open(llvm::StringRef path);
@@ -35,7 +35,12 @@ public:
private:
CompilationDatabase& database;
llvm::ArrayRef<Rule> rules;
struct File {};
llvm::StringMap<File> files;
};
} // namespace clice