[libTooling][NFC] Add a comment about comment parsing to getAssociatedRange.
authorAaron Jacobs <jacobsa@google.com>
Thu, 30 Jun 2022 12:45:42 +0000 (12:45 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Thu, 30 Jun 2022 12:46:57 +0000 (12:46 +0000)
commit007934343c4c18102b2b3e4195d356dbcdf9a3fc
tree070495c83a277262460d7a40965016867c1e3068
parent44c8ef01baf3da01d5b813a079835bfcfd60d57d
[libTooling][NFC] Add a comment about comment parsing to getAssociatedRange.

It took me multiple hours of debugging plus asking an expert for help to
figure out why this function didn't do what it promised to do. It turns
out there is a flag that needs to be set. Document this, in an attempt
to save the next person the surprise.

Reviewed By: ymandel

Differential Revision: https://reviews.llvm.org/D128774
clang/include/clang/Tooling/Transformer/SourceCode.h