1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
7 #include <cmGccDepfileReaderTypes.h>
9 class cmGccDepfileLexerHelper
12 cmGccDepfileLexerHelper() = default;
14 bool readFile(const char* filePath);
15 cmGccDepfileContent extractContent() && { return std::move(this->Content); }
17 // Functions called by the lexer
21 void newRuleOrDependency();
22 void addToCurrentPath(const char* s);
25 void sanitizeContent();
27 cmGccDepfileContent Content;
35 State HelperState = State::Rule;
38 #define YY_EXTRA_TYPE cmGccDepfileLexerHelper*