ChuanqiXu added inline comments.

================
Comment at: clang/lib/AST/TextNodeDumper.cpp:1723-1725
+  if (!D->isInlineSpecified() && D->isInlined()) {
+    OS << " implicit-inline";
+  }
----------------
Is this necessary to this revision?


================
Comment at: clang/lib/Sema/SemaDecl.cpp:9362
+      //   to the global module.
+      if (getLangOpts().CPlusPlus20 || getLangOpts().CPlusPlus2b) {
+        Module *M = NewFD->getOwningModule();
----------------
If I remember correctly, when we run `-std=c++2b`, `getLangOpts().CPlusPlus20` 
would be true too. So we could check `getLangOpts().CPlusPlus20` only here.


================
Comment at: clang/lib/Sema/SemaDecl.cpp:9363-9365
+        Module *M = NewFD->getOwningModule();
+        if (!M || M->isGlobalModule())
+          NewFD->setImplicitlyInline();
----------------
nit: this is not  required.


================
Comment at: clang/lib/Sema/SemaDecl.cpp:9657
+      //   in its class definition, it is inline.
+      if (getLangOpts().CPlusPlus20 || getLangOpts().CPlusPlus2b) {
+        Module *M = NewFD->getOwningModule();
----------------
ditto


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129045

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

Reply via email to