[all-commits] [llvm/llvm-project] 602682: bugfix in InfiniteLoopCheck to not print warnings ...

Usama Hameed via All-commits all-commits at lists.llvm.org
Mon May 23 20:20:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 602682225ad6c9135e84bbca3b91d5738712c64f
      https://github.com/llvm/llvm-project/commit/602682225ad6c9135e84bbca3b91d5738712c64f
  Author: usama hameed <usamahameed at g.ucla.edu>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
    M clang/include/clang/Analysis/Analyses/ExprMutationAnalyzer.h
    M clang/lib/Analysis/ExprMutationAnalyzer.cpp

  Log Message:
  -----------
  bugfix in InfiniteLoopCheck to not print warnings for unevaluated loops

Differential Revision: https://reviews.llvm.org/D126034


  Commit: 63ecb7dcc80d17770461c8bf01bddeb2b795625b
      https://github.com/llvm/llvm-project/commit/63ecb7dcc80d17770461c8bf01bddeb2b795625b
  Author: usama hameed <usamahameed at g.ucla.edu>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
    M clang/include/clang/Analysis/Analyses/ExprMutationAnalyzer.h
    M clang/lib/Analysis/ExprMutationAnalyzer.cpp

  Log Message:
  -----------
  bugfix in InfiniteLoopCheck to not print warnings for unevaluated loops

Added a separate check for unevaluated statements. Updated InfiniteLoopCheck to use new check

Differential Revision: https://reviews.llvm.org/D126246


  Commit: ca81abcfd752e65c533825a5fadac19ce5a33578
      https://github.com/llvm/llvm-project/commit/ca81abcfd752e65c533825a5fadac19ce5a33578
  Author: usama hameed <usamahameed at g.ucla.edu>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M clang/include/clang/Analysis/Analyses/ExprMutationAnalyzer.h
    M clang/lib/Analysis/ExprMutationAnalyzer.cpp

  Log Message:
  -----------
  updated canResolveToExpr to accept both statements and expressions. Removed unnecessary code


Compare: https://github.com/llvm/llvm-project/compare/ae9489025f1a...ca81abcfd752


More information about the All-commits mailing list