Skip to content

Commit c664c12

Browse files
committed
s [skip ci]
1 parent c2f55d2 commit c664c12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/preprocessor.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,18 @@ class CPPCHECKLIB WARN_UNUSED Preprocessor {
113113

114114
std::vector<RemarkComment> getRemarkComments() const;
115115

116+
/**
117+
* @throws simplecpp::Output thrown in case of preprocessing error
118+
*/
116119
bool loadFiles(std::vector<std::string> &files);
117120

118121
void removeComments();
119122

120123
void setPlatformInfo();
121124

125+
/**
126+
* @throws simplecpp::Output thrown in case of preprocessing error
127+
*/
122128
simplecpp::TokenList preprocess(const std::string &cfg, std::vector<std::string> &files, bool throwError = false);
123129

124130
std::string getcode(const std::string &cfg, std::vector<std::string> &files, bool writeLocations);
@@ -145,6 +151,9 @@ class CPPCHECKLIB WARN_UNUSED Preprocessor {
145151
private:
146152
static bool hasErrors(const simplecpp::Output &output);
147153

154+
/**
155+
* @throws simplecpp::Output thrown in case of preprocessing error
156+
*/
148157
bool handleErrors(const simplecpp::OutputList &outputList, bool throwError);
149158

150159
static void simplifyPragmaAsmPrivate(simplecpp::TokenList &tokenList);

0 commit comments

Comments
 (0)