Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 5f08fe1

Browse files
committed
fix C++ indexer bugs; build in release
1 parent 16abdc8 commit 5f08fe1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

4coder_fleury_lang_cpp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ internal F4_LANGUAGE_INDEXFILE(F4_CPP_IndexFile)
305305
TokenBaseKind_Identifier, &name,
306306
"(")))
307307
{
308+
handled = 1;
308309
b32 prototype = 0;
309310
if(F4_CPP_ParseFunctionBodyIFuckingHateCPlusPlus(ctx, &prototype))
310311
{
@@ -328,6 +329,7 @@ internal F4_LANGUAGE_INDEXFILE(F4_CPP_IndexFile)
328329
TokenBaseKind_Identifier, &name,
329330
"(")))
330331
{
332+
handled = 1;
331333
b32 prototype = 0;
332334
if(F4_CPP_ParseFunctionBodyIFuckingHateCPlusPlus(ctx, &prototype))
333335
{
@@ -355,6 +357,7 @@ internal F4_LANGUAGE_INDEXFILE(F4_CPP_IndexFile)
355357
TokenBaseKind_Identifier, &name,
356358
"=")))
357359
{
360+
handled = 1;
358361
F4_Index_MakeNote(ctx->app, ctx->file, 0, F4_Index_StringFromToken(ctx, name), F4_Index_NoteKind_Decl, 0, Ii64(name));
359362
}
360363

@@ -390,6 +393,7 @@ internal F4_LANGUAGE_INDEXFILE(F4_CPP_IndexFile)
390393

391394
if(valid)
392395
{
396+
handled = 1;
393397
F4_Index_MakeNote(ctx->app, ctx->file, 0, F4_Index_StringFromToken(ctx, name),
394398
F4_Index_NoteKind_Function, prototype ? F4_Index_NoteFlag_ProductType : 0, Ii64(name));
395399
F4_CPP_SkipParseBody(ctx);

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
2-
call ..\bin\buildsuper_x64-win.bat .\4coder_fleury.cpp
2+
call ..\bin\buildsuper_x64-win.bat .\4coder_fleury.cpp release
33
copy .\custom_4coder.dll ..\..\custom_4coder.dll
44
copy .\custom_4coder.pdb ..\..\custom_4coder.pdb

0 commit comments

Comments
 (0)