[PATCH] D57184: [clang-format] Allow configuring list of function-like macros that resolve to a type

2019-05-29 Thread Francois Ferrand via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC361986: [clang-format] Allow configuring list of function-like macros that resolve to a… (authored by Typz, committed by ). Changed prior to commit: https://reviews.llvm.org/D57184?vs=201395=201962#toc

[PATCH] D57184: [clang-format] Allow configuring list of function-like macros that resolve to a type

2019-05-25 Thread Marcin Radomski via Phabricator via cfe-commits
dextero updated this revision to Diff 201395. dextero added a comment. - [clang-format] Change "types" -> "type declarations" in Format.h Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57184/new/ https://reviews.llvm.org/D57184 Files:

[PATCH] D57184: [clang-format] Allow configuring list of function-like macros that resolve to a type

2019-05-25 Thread Marcin Radomski via Phabricator via cfe-commits
dextero updated this revision to Diff 201393. dextero marked an inline comment as done. dextero added a comment. - [clang-format] Make documentation a bit clearer - Rebased onto recent master @Typz: thank you for the review! I don't have push access to the repository though. Could you commit

[PATCH] D57184: [clang-format] Allow configuring list of function-like macros that resolve to a type

2019-05-22 Thread Francois Ferrand via Phabricator via cfe-commits
Typz accepted this revision. Typz added a comment. This revision is now accepted and ready to land. Actually, looking at all the other options, the same is true for all other macro kind of macros (NamespaceMacros...). Repository: rC Clang CHANGES SINCE LAST ACTION

[PATCH] D57184: [clang-format] Allow configuring list of function-like macros that resolve to a type

2019-05-22 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. Herald added a project: clang. Regarding variable/setting names, one issue I see is that these macros are not really type //names// IMO : the macro name is just part of the type (like a template), and its invocation is a type declaration. So maybe renaming to `Typedecl`

[PATCH] D57184: [clang-format] Allow configuring list of function-like macros that resolve to a type

2019-01-24 Thread Marcin Radomski via Phabricator via cfe-commits
dextero created this revision. dextero added reviewers: Typz, krasimir, djasper. Herald added a subscriber: cfe-commits. Adds a `TypenameMacros` configuration option that causes certain identifiers to be handled in a way similar to `typeof()`. This is enough to: - Prevent misinterpreting