[PATCH] D48717: [clang-tidy] fix PR36489 - respect deduced pointer types from auto as well

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 28 10:08:33 PDT 2018


JonasToth marked an inline comment as not done.
JonasToth added inline comments.


================
Comment at: test/clang-tidy/cppcoreguidelines-pro-bounds-pointer-arithmetic-pr36489.cpp:4
+
+// Fix PR36489 and detect auto-deduced value correctly.
+char *getPtr();
----------------
aaron.ballman wrote:
> Can this also include tests for other deduced types, like `decltype(expr)` and `decltype(auto)`?
`decltype(getPtr())` actually breaks the code. I have to look into this, but tomorrow or on the weekend.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D48717





More information about the cfe-commits mailing list