From e850f6fc935ba0d76ea866845d1a202576f0db32 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Thu, 23 May 2024 12:39:14 -0700 Subject: [PATCH] c++ module extensions --- src/raddbg/raddbg.h | 7 +++---- src/text_cache/text_cache.c | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/raddbg/raddbg.h b/src/raddbg/raddbg.h index 73d12983..0a870216 100644 --- a/src/raddbg/raddbg.h +++ b/src/raddbg/raddbg.h @@ -37,13 +37,9 @@ //////////////////////////////// //~ rjf: Hot, High Priority Tasks (Complete Unusability, Crashes, Fire-Worthy) // -// [ ] robustify dbgi layer to renames (cache should not be based only on -// path - must invalidate naturally when new filetime occurs) -// // [ ] raddbg jai.exe my_file.jai -- foobar -> raddbg consumes `--` incorrectly // [ ] PDB files distributed with the build are not found by DbgHelp!!! // [ ] Jai compiler debugging crash -// [ ] raddbgi file regeneration too strict // // [ ] Jump table thunks, on code w/o /INCREMENTAL:NO // @@ -377,6 +373,9 @@ // [x] TLS eval -> in-process-memory EXE info // [x] unwinding -> in-process-memory EXE info // [x] new fuzzy searching layer +// [x] robustify dbgi layer to renames (cache should not be based only on +// path - must invalidate naturally when new filetime occurs) +// [x] raddbgi file regeneration too strict #ifndef RADDBG_H #define RADDBG_H diff --git a/src/text_cache/text_cache.c b/src/text_cache/text_cache.c index 18e21dc5..11924354 100644 --- a/src/text_cache/text_cache.c +++ b/src/text_cache/text_cache.c @@ -17,6 +17,12 @@ txt_lang_kind_from_extension(String8 extension) str8_match(extension, str8_lit("cxx"), StringMatchFlag_CaseInsensitive) || str8_match(extension, str8_lit("cc"), StringMatchFlag_CaseInsensitive) || str8_match(extension, str8_lit("c++"), StringMatchFlag_CaseInsensitive) || + str8_match(extension, str8_lit("ixx"), StringMatchFlag_CaseInsensitive) || + str8_match(extension, str8_lit("cxxm"), StringMatchFlag_CaseInsensitive) || + str8_match(extension, str8_lit("c++m"), StringMatchFlag_CaseInsensitive) || + str8_match(extension, str8_lit("ccm"), StringMatchFlag_CaseInsensitive) || + str8_match(extension, str8_lit("cppm"), StringMatchFlag_CaseInsensitive) || + str8_match(extension, str8_lit("mpp"), StringMatchFlag_CaseInsensitive) || str8_match(extension, str8_lit("C"), 0) || str8_match(extension, str8_lit("hpp"), StringMatchFlag_CaseInsensitive) || str8_match(extension, str8_lit("hxx"), StringMatchFlag_CaseInsensitive) ||