[PATCH] D81444: Make the diagnostic-missing-prototypes put the suggested `static` in front of `const` if exists.

Vy Nguyen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 12:07:33 PDT 2020


oontvoo updated this revision to Diff 269627.
oontvoo marked an inline comment as done.
oontvoo added a comment.

- Less brittle way to find the loc of const.
- Add more tests


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81444/new/

https://reviews.llvm.org/D81444

Files:
  clang/include/clang/Lex/Lexer.h
  clang/lib/Lex/Lexer.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/test/Sema/warn-missing-prototypes.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81444.269627.patch
Type: text/x-patch
Size: 6451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200609/38e54898/attachment-0001.bin>


More information about the cfe-commits mailing list