[PATCH] D12473: [clang-tidy] Add old style function check

Piotr Dziwinski via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 30 03:45:53 PDT 2015


piotrdz created this revision.
piotrdz added a subscriber: cfe-commits.

This is another patch from my tool colobot-lint.

This adds a new check misc-old-style-function, which checks for instances of functions written in legacy C style.

As before, I hope I did everything according to LLVM style, including testcases and documentation.

If time allows, I will post another patch to extend this check with FixIt hints to localize variable declarations.

http://reviews.llvm.org/D12473

Files:
  clang-tidy/misc/CMakeLists.txt
  clang-tidy/misc/MiscTidyModule.cpp
  clang-tidy/misc/OldStyleFunctionCheck.cpp
  clang-tidy/misc/OldStyleFunctionCheck.h
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/misc-old-style-function.rst
  test/clang-tidy/misc-old-style-function.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12473.33528.patch
Type: text/x-patch
Size: 14429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150830/d0d29a09/attachment.bin>


More information about the cfe-commits mailing list