[all-commits] [llvm/llvm-project] d054b3: [clang] Use consistent punctuation at end of Block...

Nico Weber via All-commits all-commits at lists.llvm.org
Tue Oct 26 06:45:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d054b31d5975f6cffeef8c9f3fa57e1c4b60d427
      https://github.com/llvm/llvm-project/commit/d054b31d5975f6cffeef8c9f3fa57e1c4b60d427
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-10-26 (Tue, 26 Oct 2021)

  Changed paths:
    M clang/lib/Analysis/CFG.cpp

  Log Message:
  -----------
  [clang] Use consistent punctuation at end of Block NULL comment

No behavior change.


  Commit: aa42785d01cb498c1eb880e9f0e08f01006839c6
      https://github.com/llvm/llvm-project/commit/aa42785d01cb498c1eb880e9f0e08f01006839c6
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-10-26 (Tue, 26 Oct 2021)

  Changed paths:
    M clang/lib/Analysis/CFG.cpp

  Log Message:
  -----------
  [clang] Simplify CFG block printing code a bit

No behavior change.


  Commit: 0b7c9addce69ca089a23334490758907dd4ab0db
      https://github.com/llvm/llvm-project/commit/0b7c9addce69ca089a23334490758907dd4ab0db
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-10-26 (Tue, 26 Oct 2021)

  Changed paths:
    M clang/lib/Analysis/CFG.cpp

  Log Message:
  -----------
  [clang] Make loop in CFGBuilder::VisitCXXTryStmt() more canonical

No behavior change.


  Commit: 04f30795f1663843b219393040946136786aa591
      https://github.com/llvm/llvm-project/commit/04f30795f1663843b219393040946136786aa591
  Author: Nico Weber <thakis at chromium.org>
  Date:   2021-10-26 (Tue, 26 Oct 2021)

  Changed paths:
    M clang/lib/Analysis/CFG.cpp
    M clang/test/Sema/warn-unreachable.c
    A clang/test/Sema/warn-unreachable.m
    A clang/test/Sema/warn-unreachable.mm
    M clang/test/SemaObjC/try-catch.m

  Log Message:
  -----------
  [clang] Implement CFG construction for @try and @catch

@finally is still not implemented.

With this, clang can emit -Wreturn-type warnings for functions containing
@try/@catch (but not yet @finally), and -Wunreachable-code also works for those
functions.

The implementation is similar to D36914.

Part of PR46693.

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


Compare: https://github.com/llvm/llvm-project/compare/61e3b9fefe13...04f30795f166


More information about the All-commits mailing list