MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / getFirstNonEmptyToken

Function getFirstNonEmptyToken

src/SourceCompile/PreprocessFile.cpp:809–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809static std::string_view getFirstNonEmptyToken(
810 const std::vector<std::string>& tokens) {
811 for (const auto& token : tokens) {
812 if (token != " ") return token;
813 }
814 static constexpr std::string_view kEmpty;
815 return kEmpty;
816}
817
818std::pair<bool, std::string> PreprocessFile::evaluateMacro_(
819 std::string_view name, std::vector<std::string>& actual_args,

Callers 1

evaluateMacro_Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected