shafik added inline comments.

================
Comment at: clang/lib/Sema/SemaInit.cpp:3870-3872
+    }
+    if (const ASTTemplateArgumentListInfo *Info = VTSD->getTemplateArgsInfo())
+      EndLoc = Info->getRAngleLoc();
----------------
If I understand correctly we either have a 
`VarTemplatePartialSpecializationDecl` or `ASTTemplateArgumentListInfo ` so we 
should use an `else if` and if we do then we should add a brace to [make the 
else if consistent with the 
else](https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139705

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

Reply via email to