Skip to content

identifier "__auto_type" is undefined of atomic_store #2175

@qwerty258

Description

@qwerty258

Type: LanguageService

Describe the bug

  • OS and Version: Ubuntu 16.04.4 LTS
  • VS Code Version: 1.24.1
  • C/C++ Extension Version: 0.17.5
  • Other extensions you installed (and if the issue persists after disabling them): autoconf, Git History, Markdown TOC, Python, File Templates for VSCdoe
  • A clear and concise description of what the bug is.

for atomic_store prompting identifier "__auto_type" is undefined

To Reproduce
c_cpp_properties.json:

{
    "env": {
        "defaultIncludePath": [
            "${workspaceRoot}/include_internal",
            "${workspaceRoot}/generated_files"
        ]
    },
    "configurations": [
        {
            "name": "Linux",
            "intelliSenseMode": "clang-x64",
            "includePath": [
                "${workspaceRoot}/include_internal",
                "${workspaceRoot}/generated_files"
                ],
            "defines": [],
            "compilerPath": "/opt/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc",
            "cppStandard": "c++17",
            "cStandard": "c11",
            "browse": {
                "path": [
                ],
                "limitSymbolsToIncludedHeaders": true,
                "databaseFilename": "${workspaceFolder}/.vscode/browse.vc.db"
            }
        }
    ],
    "version": 4
}
#include <stdatomic.h>
int main()
{
    atomic_bool b_variable = ATOMIC_VAR_INIT(false);
    atomic_store(&b_variable, true);
    return 0;
}

Expected behavior
do not prompting identifier "__auto_type" is undefined for using atomic_store of C 11 standard

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions