[gnome-builder/gnome-builder-3-32] IdeCompileCommands: recognize --std= options



commit 30a572e2f176063f46b8f48824f604d9861bb5ca
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]