Implicit functions are outside the control of source authors and should
be exempt from style restrictions.
Tested via running clang tools tests.
This is an amended followup to https://reviews.llvm.org/D57207
Differential D58095
[clang-tidy] Make google-objc-function-naming ignore implicit functions 🙈 stephanemoore on Feb 11 2019, 8:31 PM. Authored by
Details Implicit functions are outside the control of source authors and should Tested via running clang tools tests. This is an amended followup to https://reviews.llvm.org/D57207
Diff Detail
Event Timeline
Comment Actions Create a new header stdio.h under //test/clang-tidy/Inputs/Headers/ to contain declaration of
|
Thus far I have been unsuccessful in using line markers to simulate this declaration being in a system header but I did discover precedence for using NOLINT to suppress diagnostics in some of the clang-tidy tests:
https://github.com/llvm/llvm-project/blob/master/clang-tools-extra/test/clang-tidy/google-runtime-int-std.cpp#L11
https://github.com/llvm/llvm-project/blob/master/clang-tools-extra/test/clang-tidy/google-runtime-int.cpp#L6
I think it should be reasonable to suppress the diagnostic here with a comment explaining why. Let me know if you don't think that's an appropriate solution and I can continue investigating for a potential solution using line markers.