[all-commits] [llvm/llvm-project] fedc98: [clang][Diagnostics] Add source range to uninitial...

Timm Baeder via All-commits all-commits at lists.llvm.org
Sun Sep 10 22:03:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fedc982731567fdd4fce00c697b3b617eb77b35d
      https://github.com/llvm/llvm-project/commit/fedc982731567fdd4fce00c697b3b617eb77b35d
  Author: Timm Baeder <tbaeder at redhat.com>
  Date:   2023-09-11 (Mon, 11 Sep 2023)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/AST/Interp/Interp.cpp
    M clang/lib/AST/Interp/InterpFrame.cpp
    M clang/test/Misc/constexpr-source-ranges.cpp

  Log Message:
  -----------
  [clang][Diagnostics] Add source range to uninitialized diagnostics (#65896)

Before:

```
array.cpp:319:10: note: read of uninitialized object is not allowed in a constant expression
  319 |    return aaa;
      |           ^
```

After:

```
array.cpp:319:10: note: read of uninitialized object is not allowed in a constant expression
  319 |    return aaa;
      |           ^~~
```




More information about the All-commits mailing list