Skip to content

ClangTidy warnings for cppcoreguidelines-macro-usage #1664

@jviotti

Description

@jviotti
/Users/jviotti/Projects/core/src/core/json/parser.h:651:9: error: function-like macro 'CALLBACK_PRE' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage,-warnings-as-errors]
  651 | #define CALLBACK_PRE(value_type, value)                                        \
      |         ^

/Users/jviotti/Projects/core/src/core/json/parser.h:658:9: error: function-like macro 'CALLBACK_PRE_WITH_POSITION' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage,-warnings-as-errors]
  658 | #define CALLBACK_PRE_WITH_POSITION(value_type, line, column, value)            \
      |         ^

/Users/jviotti/Projects/core/src/core/json/parser.h:665:9: error: function-like macro 'CALLBACK_POST' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage,-warnings-as-errors]
  665 | #define CALLBACK_POST(value_type, value)                                       \
      |         ^

/Users/jviotti/Projects/core/src/core/jsonschema/official_walker.cc:7:9: error: variadic macro 'WALK' used; consider using a 'constexpr' variadic template function [cppcoreguidelines-macro-usage,-warnings-as-errors]
    7 | #define WALK(vocabulary, _keyword, strategy, ...)                              \
      |         ^

/Users/jviotti/Projects/core/src/core/jsonschema/official_walker.cc:13:9: error: variadic macro 'WALK_ANY' used; consider using a 'constexpr' variadic template function [cppcoreguidelines-macro-usage,-warnings-as-errors]
   13 | #define WALK_ANY(vocabulary_1, vocabulary_2, _keyword, strategy, ...)          \
      |         ^

/Users/jviotti/Projects/core/src/core/jsonschema/official_walker.cc:17:9: error: variadic macro 'WALK_MAYBE_DEPENDENT' used; consider using a 'constexpr' variadic template function [cppcoreguidelines-macro-usage,-warnings-as-errors]
   17 | #define WALK_MAYBE_DEPENDENT(vocabulary, _keyword, strategy,                   \
      |         ^

/Users/jviotti/Projects/core/src/core/jsonschema/official_walker.cc:25:9: error: macro 'HTTPS_BASE' used to declare a constant; consider using a 'constexpr' constant [cppcoreguidelines-macro-usage,-warnings-as-errors]
   25 | #define HTTPS_BASE "https://json-schema.org/draft/"
      |         ^

/Users/jviotti/Projects/core/src/core/jsonschema/official_walker.cc:213:9: error: macro 'HTTP_BASE' used to declare a constant; consider using a 'constexpr' constant [cppcoreguidelines-macro-usage,-warnings-as-errors]
  213 | #define HTTP_BASE "http://json-schema.org/"
      |         ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions