Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Basic/DiagnosticSemaKinds.td
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 11,637 Lines • ▼ Show 20 Lines | ||||||||||||
// HLSL Diagnostics | // HLSL Diagnostics | |||||||||||
def err_hlsl_attr_unsupported_in_stage : Error<"attribute %0 is unsupported in %select{Pixel|Vertex|Geometry|Hull|Domain|Compute|Library|RayGeneration|Intersection|AnyHit|ClosestHit|Miss|Callable|Mesh|Amplification|Invalid}1 shaders, requires %2">; | def err_hlsl_attr_unsupported_in_stage : Error<"attribute %0 is unsupported in %select{Pixel|Vertex|Geometry|Hull|Domain|Compute|Library|RayGeneration|Intersection|AnyHit|ClosestHit|Miss|Callable|Mesh|Amplification|Invalid}1 shaders, requires %2">; | |||||||||||
def err_hlsl_numthreads_argument_oor : Error<"argument '%select{X|Y|Z}0' to numthreads attribute cannot exceed %1">; | def err_hlsl_numthreads_argument_oor : Error<"argument '%select{X|Y|Z}0' to numthreads attribute cannot exceed %1">; | |||||||||||
def err_hlsl_numthreads_invalid : Error<"total number of threads cannot exceed %0">; | def err_hlsl_numthreads_invalid : Error<"total number of threads cannot exceed %0">; | |||||||||||
def err_hlsl_missing_numthreads : Error<"missing numthreads attribute for %0 shader entry">; | def err_hlsl_missing_numthreads : Error<"missing numthreads attribute for %0 shader entry">; | |||||||||||
def err_hlsl_attribute_param_mismatch : Error<"%0 attribute parameters do not match the previous declaration">; | def err_hlsl_attribute_param_mismatch : Error<"%0 attribute parameters do not match the previous declaration">; | |||||||||||
def err_hlsl_missing_semantic_annotation : Error< | ||||||||||||
aaron.ballman: Will users know how to fix the issue when they get this diagnostic? "missing annotation" sounds… | ||||||||||||
I should probably make this closer to our existing diagnostic: "Semantic must be defined for all parameters of an entry function or patch constant function." beanz: I should probably make this closer to our existing diagnostic: "Semantic must be defined for… | ||||||||||||
Not Done ReplyInline ActionsThat sounds more appropriately descriptive. aaron.ballman: That sounds more appropriately descriptive. | ||||||||||||
Not Done ReplyInline Actions
I have no idea how close to the 80 col limit I got this, but we do mostly try to ensure diagnostics don't go too far over the 80 col limit (we're more lax in .td files because clang-format sometimes destroys the formatting rather than help it). aaron.ballman: I have no idea how close to the 80 col limit I got this, but we do mostly try to ensure… | ||||||||||||
"semantic annotations must be present for all parameters of an entry " | ||||||||||||
"function or patch constant function">; | ||||||||||||
def err_hlsl_pointers_unsupported : Error< | def err_hlsl_pointers_unsupported : Error< | |||||||||||
"%select{pointers|references}0 are unsupported in HLSL">; | "%select{pointers|references}0 are unsupported in HLSL">; | |||||||||||
def err_hlsl_operator_unsupported : Error< | def err_hlsl_operator_unsupported : Error< | |||||||||||
"the '%select{&|*|->}0' operator is unsupported in HLSL">; | "the '%select{&|*|->}0' operator is unsupported in HLSL">; | |||||||||||
// Layout randomization diagnostics. | // Layout randomization diagnostics. | |||||||||||
def err_non_designated_init_used : Error< | def err_non_designated_init_used : Error< | |||||||||||
"a randomized struct can only be initialized with a designated initializer">; | "a randomized struct can only be initialized with a designated initializer">; | |||||||||||
def err_cast_from_randomized_struct : Error< | def err_cast_from_randomized_struct : Error< | |||||||||||
"casting from randomized structure pointer type %0 to %1">; | "casting from randomized structure pointer type %0 to %1">; | |||||||||||
} // end of sema component. | } // end of sema component. |
Will users know how to fix the issue when they get this diagnostic? "missing annotation" sounds like "slap any old annotation on there, it'll be fine".