[clang] Document the const and pure attributes (PR #205881)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 26 05:38:17 PDT 2026


================
@@ -3157,7 +3157,7 @@ def ArmLocallyStreaming : InheritableAttr, TargetSpecificAttr<TargetAArch64> {
 
 def Pure : InheritableAttr {
   let Spellings = [GCC<"pure">];
-  let Documentation = [Undocumented];
+  let Documentation = [PureDocs];
----------------
AaronBallman wrote:

I waffled back and forth on this but ultimately decided that a combined section makes more sense. I think most people want to know which out of the two to use, and so being able to compare and contrast within one documentation section makes that easier.

https://github.com/llvm/llvm-project/pull/205881


More information about the cfe-commits mailing list