Adds a check to convert <fbl/limits.h> to std <limits>.
This check is part of a set of migration checks as we prepare to move Zircon user code to use the C++ standard library, and should prevent regressions after the migration is complete.
Differential D54169
[clang-tidy] Zircon <fbl/limits.h> -> <limits> juliehockett on Nov 6 2018, 11:28 AM. Authored by
Details
Adds a check to convert <fbl/limits.h> to std <limits>. This check is part of a set of migration checks as we prepare to move Zircon user code to use the C++ standard library, and should prevent regressions after the migration is complete.
Diff Detail Event Timeline
Comment Actions This is https://bugs.llvm.org//show_bug.cgi?id=32739 . I think checks not relevant to a general audience (ie including the boost directory) should be in external plugins. It's not really clear to me what has to happen for that, but it seems increasingly relevant. Comment Actions After a lot of discussion, we'll do this migration internally. Thanks for your comments! |
Does this also work on platforms where the path separator is \ instead of /? What about case insensitive file systems where it may be spelled LiMiTs.H? Does this properly handle a case like:
(Should add test cases for all of these scenarios.)