[gnome-builder] IdeCompileCommands: recognize --std= options



commit ed8d52fc07ba635c1f1eceffe3434bb23891a7ba
Author: Giovanni Campagna <gcampagn cs stanford edu>
Date:   Thu Apr 18 08:29:41 2019 -0700

    IdeCompileCommands: recognize --std= options
    
    They are a synonyms for -std= options, and both should be mined
    from compile_commands and passed to clang

 src/libide/foundry/ide-compile-commands.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libide/foundry/ide-compile-commands.c b/src/libide/foundry/ide-compile-commands.c
index d11521cb1..3faf5f744 100644
--- a/src/libide/foundry/ide-compile-commands.c
+++ b/src/libide/foundry/ide-compile-commands.c
@@ -512,6 +512,7 @@ ide_compile_commands_filter_c (IdeCompileCommands   *self,
 
         default:
           if (g_str_has_prefix (param, "-std=") ||
+              g_str_has_prefix (param, "--std=") ||
               ide_str_equal0 (param, "-pthread") ||
               g_str_has_prefix (param, "-isystem"))
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]