mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 14:48:27 +08:00
[libc][hdrgen] Fix includes sorting in JSON emission (#165460)
The JSON output support in hdrgen had a bug that tripped when used with headers that use special-case headers like <stdint.h> to supply some times, as well as llvm-libc-types/*.h headers.
This commit is contained in:
@@ -241,7 +241,5 @@ class HeaderFile:
|
||||
return {
|
||||
"name": self.name,
|
||||
"standards": self.standards,
|
||||
"includes": [
|
||||
str(file) for file in sorted({COMMON_HEADER} | self.includes())
|
||||
],
|
||||
"includes": sorted(str(file) for file in {COMMON_HEADER} | self.includes()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user