autofix-namespace
Fixes 'not a member of namespace' errors by adding namespace qualifiers or using declarations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Fixes 'not a member of namespace' errors by adding namespace qualifiers or using declarations.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Comprehensive build error repair tool for C++, Rust, and Java projects using Soong, GN, Make, or CMake. Automatically fixes 30+ types of errors including headers, linking, APIs, and config.
Fixes function call errors with wrong number or type of arguments.
Fixes type mismatch errors by adding appropriate casts or conversions.
Fixes syntax errors in Android.bp files.
Removes unsupported or unknown compiler flags from build configurations.
Fixes scope and variable errors in BUILD.gn files.
| name | autofix-namespace |
| description | Fixes 'not a member of namespace' errors by adding namespace qualifiers or using declarations. |
Fixes C++ namespace-related compilation errors.
'X' is not a member of 'std''X' is not a member of 'namespace''X' was not declared in this scope (when namespace issue)using.From: 'cout' is not a member of 'std'
Symbol: cout, Namespace: std
Add namespace prefix:
// Before
cout << "Hello"; // ERROR
// After
std::cout << "Hello";
Add using declaration:
// At top of file or function
using std::cout;
// Or
using namespace std; // Less recommended
| Symbol | Namespace |
|---|---|
cout, cin, endl | std:: |
vector, map, set | std:: |
string | std:: |
unique_ptr, shared_ptr | std:: |
chrono::* | std::chrono:: |