summaryrefslogtreecommitdiff
path: root/meson.build
AgeCommit message (Collapse)AuthorFilesLines
2022-05-17Update for LLVM 13Jan Tojnar1-1/+1
- Size was renamed to Extent https://github.com/llvm/llvm-project/commit/9b3df78b4c2ab7a7063e532165492e1ffa38d401 ../clang-plugin/gerror-checker.cpp:81:10: fatal error: clang/StaticAnalyzer/Core/PathSensitive/DynamicSize.h: No such file or directory 81 | #include <clang/StaticAnalyzer/Core/PathSensitive/DynamicSize.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - RValues are called PRValues as per C++11 taxonomy https://github.com/llvm/llvm-project/commit/aef5d8fdc7d0d348125d5ecf4a13be5888eb1654 ../clang-plugin/assertion-extracter.cpp:72:39: error: 'VK_RValue' was not declared in this scope 72 | VK_RValue, OK_Ordinary, SourceLocation (), | ^~~~~~~~~
2022-05-17Update for LLVM 12Jan Tojnar1-1/+1
- isIntegerConstantExpr that returns value has been renamed https://github.com/llvm/llvm-project/commit/36036aa70ec1df7b51b5d30b2dd8090ad2b6e783 ../clang-plugin/assertion-extracter.cpp:194:50: error: cannot convert 'llvm::APSInt' to 'const clang::ASTContext&' 194 | expr->isIntegerConstantExpr (bool_expr, context) && | ^~~~~~~~~ | | | llvm::APSInt
2022-05-17Update for LLVM 11Jan Tojnar1-1/+1
- UnaryOperator::UnaryOperator takes extra arguments: https://github.com/llvm/llvm-project/commit/f5360d4bb3376347479d86547d21b95d80be786d ../clang-plugin/assertion-extracter.cpp:74:58: error: no matching function for call to 'clang::UnaryOperator::UnaryOperator(clang::Expr*&, clang::UnaryOperatorKind, clang::QualType, clang::ExprValueKind, clang::ExprObjectKind, clang::SourceLocation, bool)' 74 | /* can_overflow = */ false); | ^ - FPOptions argument of {Unary,Binary}Operator::Create was changed to FPOptionsOverride type: https://github.com/llvm/llvm-project/commit/f4aaed3bf16b3c07152c7a47d1a363a8267ebcf1 ../clang-plugin/assertion-extracter.cpp:74:39: error: cannot convert 'clang::FPOptions' to 'clang::FPOptionsOverride' 74 | FPOptions(context.getLangOpts())); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | clang::FPOptions - BinaryOperator wants to use a constructor method https://github.com/llvm/llvm-project/commit/2ba4e3a4598b165245c581c506a813cd4a7dce33 ../clang-plugin/assertion-extracter.cpp:85:45: error: no matching function for call to 'clang::BinaryOperator::BinaryOperator(clang::Expr*&, clang::Expr*&, clang::BinaryOperatorKind, clang::QualType, clang::ExprValueKind, clang::ExprObjectKind, clang::SourceLocation, clang::FPOptions)' 85 | FPOptions ()); | ^ - SymbolicRegion::getExtent has been removed https://github.com/llvm/llvm-project/commit/601687bf731a33364a7de0ece7acd1c17c9dd60d ../clang-plugin/gerror-checker.cpp:707:52: error: 'const class clang::ento::SymbolicRegion' has no member named 'getExtent' 707 | symbolic_allocated_region->getExtent (sval_builder); | ^~~~~~~~~
2022-05-17Update for LLVM 10Jan Tojnar1-2/+2
- It switched to C++14 In file included from /nix/store/ida6b9zgxsw5xa7z8s1y0n42z60lzw2q-llvm-11.1.0-dev/include/llvm/ADT/APInt.h:19, from /nix/store/ida6b9zgxsw5xa7z8s1y0n42z60lzw2q-llvm-11.1.0-dev/include/llvm/ADT/APSInt.h:17, from /nix/store/w9pancs07lxapsnv8llwkzx73xc1x29l-clang-11.1.0-dev/include/clang/Basic/FixedPoint.h:19, from /nix/store/w9pancs07lxapsnv8llwkzx73xc1x29l-clang-11.1.0-dev/include/clang/AST/APValue.h:16, from /nix/store/w9pancs07lxapsnv8llwkzx73xc1x29l-clang-11.1.0-dev/include/clang/AST/Expr.h:16, from /build/tartan/build/meson-private/tmp46ad89j3/testfile.cpp:2: /nix/store/ida6b9zgxsw5xa7z8s1y0n42z60lzw2q-llvm-11.1.0-dev/include/llvm/Support/MathExtras.h:396:23: error: 'enable_if_t' in namespace 'std' does not name a template type 396 | constexpr inline std::enable_if_t<(N < 64), bool> isUInt(uint64_t X) { | ^~~~~~~~~~~ /nix/store/ida6b9zgxsw5xa7z8s1y0n42z60lzw2q-llvm-11.1.0-dev/include/llvm/Support/MathExtras.h:396:18: note: 'std::enable_if_t' is only available from C++14 onwards - It uses std::make_unique https://reviews.llvm.org/D66259 ../clang-plugin/plugin.cpp:123:30: error: 'make_unique' is not a member of 'llvm'; did you mean 'std::make_unique'? 123 | return llvm::make_unique<MultiplexConsumer> (std::move (consumers)); | ^~~~~~~~~~~ - CheckName type was renamed: https://github.com/llvm/llvm-project/commit/72649423c043341c770516cd73aecde281730260 ../clang-plugin/gerror-checker.h:58:17: error: 'CheckName' does not name a type 58 | CheckName check_name_overwrite_set; | ^~~~~~~~~ - ASTContext::getConstantArrayType takes an extra argument: https://github.com/llvm/llvm-project/commit/772e266fbff40a566c9ef2d805c057c4692ac028 ../clang-plugin/gsignal-checker.cpp:346:61: error: no matching function for call to 'clang::ASTContext::getConstantArrayType(clang::QualType&, llvm::APInt, clang::ArrayType::ArraySizeModifier, int) const' 346 | return context.getConstantArrayType (element_type, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ 347 | llvm::APInt (32, fixed_size), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 348 | ArrayType::ArraySizeModifier::Static, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 349 | 0); - BugReport was renamed to BasicBugReport https://github.com/llvm/llvm-project/commit/2f169e7cdd9973d2aa4cba6b0a09126a5e7268ec ../clang-plugin/gerror-checker.cpp:781:40: required from here /nix/store/i633yj06994wbb89b88nm5kb4pbm8h4r-gcc-11.3.0/include/c++/11.3.0/bits/unique_ptr.h:962:30: error: invalid new-expression of abstract class type 'clang::ento::BugReport' 962 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Constructors for attributes changed: https://github.com/llvm/llvm-project/commit/6a24e8068052cd6b48295959ec4c44eb2ef819c5 ../clang-plugin/gir-attributes.cpp:297:73: error: no matching function for call to 'clang::WarnUnusedAttr::WarnUnusedAttr(clang::SourceRange, clang::ASTContext&, int)' 297 | func.getASTContext (), 0); | ^ Using the `Create` method instead of the previos dump since it will set the 0 `spellingListIndex` for us automatically when needed.
2020-01-21build: Meson build systemPhilip Chimento1-0/+48
Removes the existing Autotools build system and adds a new Meson one. Also replaces the shell script test driver with a Python one, since Meson already brings in a Python dependency. Common operations: - ./configure -> meson _build - make -> ninja -C _build - make install -> ninja -C _build install - make check -> meson test -C _build - make Tartan.pot-update -> ninja -C _build tartan-pot - make update-po -> ninja -C _build tartan-update-po To run the tests with coverage enabled and make a coverage report: - meson _build -Db_coverage=true - meson test -C _build - ninja -C _build coverage-html