MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / IncludeFile

Method IncludeFile

libs/wgtcc/cpp.cc:780–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778
779
780 void Preprocessor::IncludeFile(TokenSequence& is,
781 const std::string* filename) {
782 TokenSequence ts{ is.tokList_, is.begin_, is.begin_ };
783 Scanner scanner(ReadFile(*filename), filename);
784 scanner.Tokenize(ts);
785
786 // We done including header file
787 is.begin_ = ts.begin_;
788 }
789 void Preprocessor::IncludeSource(TokenSequence& is, const std::string* src, const std::string* filename)
790 {
791 TokenSequence ts{ is.tokList_, is.begin_, is.begin_ };

Callers

nothing calls this directly

Calls 2

ReadFileFunction · 0.85
TokenizeMethod · 0.80

Tested by

no test coverage detected