rnk marked an inline comment as done.
rnk added a comment.

The main things going out of line are:

- Create* factory methods
- Constructors
- Enum/string converters (use StringSwitch -> slow to instantiate)

Here's two examples from before & after:
https://reviews.llvm.org/P8203
https://reviews.llvm.org/P8204

The constructors and factory methods *could* be trivial, but some of them are 
quite complex.



================
Comment at: clang/utils/TableGen/ClangAttrEmitter.cpp:269
 
     void writeAccessors(raw_ostream &OS) const override {
       OS << "  " << type << " get" << getUpperName() << "() const {\n";
----------------
Most trivial accessors are still defined inline, like here. I think there's 
only one override of writeAccesorDefinitions.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76040



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to