#include "clang-c/CXCompilationDatabase.h"
#include "clang-c/BuildSystem.h"
#include "clang-c/Documentation.h"
-#include "llvm/Support/DataTypes.h"
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
}
break;
case CXTemplateArgumentKind_Integral:
- printf(" [Template arg %d: kind: %d, intval: %" PRId64 "]",
+ printf(" [Template arg %d: kind: %d, intval: %lld]",
I, TAK, clang_Cursor_getTemplateArgumentValue(Cursor, I));
break;
default:
{
long long Size = clang_Type_getSizeOf(T);
if (Size >= 0 || Size < -1 ) {
- printf(" [sizeof=%" PRId64 "]", Size);
+ printf(" [sizeof=%lld]", Size);
}
}
/* Print the type alignof if applicable. */
{
long long Align = clang_Type_getAlignOf(T);
if (Align >= 0 || Align < -1) {
- printf(" [alignof=%" PRId64 "]", Align);
+ printf(" [alignof=%lld]", Align);
}
}
/* Print the record field offset if applicable. */
FieldName);
long long Offset2 = clang_Cursor_getOffsetOfField(cursor);
if (Offset == Offset2){
- printf(" [offsetof=%" PRId64 "]", Offset);
+ printf(" [offsetof=%lld]", Offset);
} else {
/* Offsets will be different in anonymous records. */
- printf(" [offsetof=%" PRId64 "/%" PRId64 "]", Offset, Offset2);
+ printf(" [offsetof=%lld/%lld]", Offset, Offset2);
}
}
}
}
static int perform_print_build_session_timestamp(void) {
- printf("%" PRId64 "\n", clang_getBuildSessionTimestamp());
+ printf("%lld\n", clang_getBuildSessionTimestamp());
return 0;
}