Skip to content

Commit

Permalink
Preprocessor: small header cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Apr 6, 2024
1 parent 36eab82 commit 106d640
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class SuppressionList;
*
*/

class CPPCHECKLIB Directive {
public:
struct CPPCHECKLIB Directive {
/** name of (possibly included) file where directive is defined */
std::string file;

Expand Down Expand Up @@ -125,13 +124,6 @@ class CPPCHECKLIB Preprocessor {

void simplifyPragmaAsm(simplecpp::TokenList *tokenList) const;

private:

static void simplifyPragmaAsmPrivate(simplecpp::TokenList *tokenList);

public:


static void getErrorMessages(ErrorLogger *errorLogger, const Settings &settings);

/**
Expand All @@ -144,6 +136,8 @@ class CPPCHECKLIB Preprocessor {
static bool hasErrors(const simplecpp::Output &output);

private:
static void simplifyPragmaAsmPrivate(simplecpp::TokenList *tokenList);

void missingInclude(const std::string &filename, unsigned int linenr, const std::string &header, HeaderTypes headerType);
void error(const std::string &filename, unsigned int linenr, const std::string &msg);

Expand Down

0 comments on commit 106d640

Please sign in to comment.