[#llvm-DiagnosticInfoGenericWithLoc] = xref:llvm.adoc[llvm]::DiagnosticInfoGenericWithLoc :relfileprefix: ../ :mrdocs: Generic location‐aware diagnostic with a message. == Synopsis Declared in `<llvm/IR/DiagnosticInfo.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DiagnosticInfoGenericWithLoc : public xref:llvm/DiagnosticInfoWithLocationBase.adoc[DiagnosticInfoWithLocationBase] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:llvm/DiagnosticInfoWithLocationBase.adoc[DiagnosticInfoWithLocationBase]` | Common features for diagnostics with an associated location. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/DiagnosticInfoGenericWithLoc/2constructor.adoc[`DiagnosticInfoGenericWithLoc`] [.small]#[constructor]# | Construct a generic location‐aware diagnostic. | xref:llvm/DiagnosticInfoWithLocationBase/getAbsolutePath.adoc[`getAbsolutePath`] | Return the absolute path to the file. | xref:llvm/DiagnosticInfoWithLocationBase/getFunction.adoc[`getFunction`] | Return the function where this diagnostic is triggered. | xref:llvm/DiagnosticInfo/getKind.adoc[`getKind`] | Return the kind of this diagnostic. | xref:llvm/DiagnosticInfoWithLocationBase/getLocation-082.adoc[`getLocation`] | `getLocation` overloads | xref:llvm/DiagnosticInfoWithLocationBase/getLocationStr.adoc[`getLocationStr`] | Return the location as a "file:line:col" string. | xref:llvm/DiagnosticInfoGenericWithLoc/getMsgStr.adoc[`getMsgStr`] | Return the diagnostic message. | xref:llvm/DiagnosticInfo/getSeverity.adoc[`getSeverity`] | Return the severity of this diagnostic. | xref:llvm/DiagnosticInfoWithLocationBase/isLocationAvailable.adoc[`isLocationAvailable`] | Return true if location information is available for this diagnostic. | xref:llvm/DiagnosticInfoGenericWithLoc/print.adoc[`print`] [.small]#[virtual]# | Print this diagnostic using `DP.` |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/DiagnosticInfoGenericWithLoc/classof.adoc[`classof`] | Return true if `DI` is a DiagnosticInfoGenericWithLoc. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/wrap-004.adoc[`wrap`] | Convert a `DiagnosticInfo` pointer to an opaque `LLVMDiagnosticInfoRef.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#