forked from OSchip/llvm-project
030ff901f4
Summary: To cover STR34-C rule's second use case, where ``signed char`` is used for array subscript after an integer conversion. In the case of non-ASCII character this conversion will result in a value in excess of UCHAR_MAX. There is another clang-tidy check which catches these cases. cppcoreguidelines-pro-bounds-constant-array-index catches any indexing which is not integer constant. I think this check is very strict about the index (e.g. constant), so it's still useful to cover the ``signed char`` use case in this check, so we can provide a way to catch the SEI cert rule's use cases on a codebase, where this CPP guideline is not used. Reviewers: aaron.ballman, njames93 Reviewed By: aaron.ballman Subscribers: xazax.hun, cfe-commits Tags: #clang, #clang-tools-extra Differential Revision: https://reviews.llvm.org/D78904 |
||
---|---|---|
.. | ||
_static | ||
_templates | ||
clang-tidy | ||
clangd | ||
CMakeLists.txt | ||
ModularizeUsage.rst | ||
README.txt | ||
ReleaseNotes.rst | ||
clang-doc.rst | ||
clang-include-fixer.rst | ||
clang-modernize.rst | ||
clang-rename.rst | ||
clang-tidy.rst | ||
clangd.rst | ||
conf.py | ||
cpp11-migrate.rst | ||
doxygen-mainpage.dox | ||
doxygen.cfg.in | ||
index.rst | ||
make.bat | ||
modularize.rst | ||
pp-trace.rst |
README.txt
---------------------------------- Documentation in clang-tools-extra ---------------------------------- To generate documentation in HTML format from files in clang-tools-extra/docs, build the docs-clang-tools-html target. To generate documentation from the source code using Doxygen, build the doxygen-clang-tools target.