[all-commits] [llvm/llvm-project] 7af672: Sema::getOwningModule - take const Decl* type.

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jan 13 07:09:41 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7af67259cdd66811941514a263dd0f81c491d8f1
      https://github.com/llvm/llvm-project/commit/7af67259cdd66811941514a263dd0f81c491d8f1
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaOverload.cpp

  Log Message:
  -----------
  Sema::getOwningModule - take const Decl* type.

Fixes static analyzer warning that const_cast was being used despite only const methods being called.


  Commit: 40311f9724953541ab7b755fb6a96b31c1e63f00
      https://github.com/llvm/llvm-project/commit/40311f9724953541ab7b755fb6a96b31c1e63f00
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp

  Log Message:
  -----------
  Fix "pointer is null" static analyzer warnings. NFCI.

Use castAs<> instead of getAs<> since the pointers are always dereferenced and castAs will perform the null assertion for us.


  Commit: 025941785faf25a3d9ba2c1e7682ca6c2ad063af
      https://github.com/llvm/llvm-project/commit/025941785faf25a3d9ba2c1e7682ca6c2ad063af
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp

  Log Message:
  -----------
  Fix some cppcheck shadow variable warnings. NFCI.


  Commit: 4647aae72f33b8742eb42c1fb869ebd4fdbb3038
      https://github.com/llvm/llvm-project/commit/4647aae72f33b8742eb42c1fb869ebd4fdbb3038
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M clang/lib/AST/ASTDiagnostic.cpp

  Log Message:
  -----------
  Merge isVectorType() and getAs<VectorType> calls to silence clang static analyzer warning. NFCI.


  Commit: b11027a08620dce2887377c830be239a4af478b6
      https://github.com/llvm/llvm-project/commit/b11027a08620dce2887377c830be239a4af478b6
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M clang/lib/AST/ASTDiagnostic.cpp

  Log Message:
  -----------
  Fix cppcheck uninitialized variable in DiffTree() constructor warning. NFCI.


Compare: https://github.com/llvm/llvm-project/compare/0b91e78a7190...b11027a08620


More information about the All-commits mailing list