[llvm-bugs] [Bug 44591] New: ParmVarDecl source range incorrect for unnamed east const (incl *const)
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 19 16:11:16 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44591
Bug ID: 44591
Summary: ParmVarDecl source range incorrect for unnamed east
const (incl *const)
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm at alex.lanin.de
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
The parmVarDecl matcher doesnt behave as expected. At least not what I
expected.
Code:
void ok1(const int);
^~~~~~~~~ << as expected
void ok2(int const foo);
^~~~~~~~~~~~~ << as expected
void bugged1(int const);
^~~~~~~~~ << expected
^~~ << actually
void ok2(const int* const foo);
^~~~~~~~~~~~~~~~~~~~ << as expected
void bugged2(const int* const);
^~~~~~~~~~~~~~~~ << expected
^~~~~~~~~~ << actually
Easily reproducible with clang-query:
set print-matcher true
m parmVarDecl()
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200120/6d09ae47/attachment.html>
More information about the llvm-bugs
mailing list