[kate] [Bug 473988] New: C++ Namespace Alias is not recognized by diagnostics tool, flags all mentions as errors.

2023-08-31 Thread Njal
https://bugs.kde.org/show_bug.cgi?id=473988

Bug ID: 473988
   Summary: C++ Namespace Alias is not recognized by diagnostics
tool, flags all mentions as errors.
Classification: Applications
   Product: kate
   Version: 23.08.0
  Platform: Manjaro
OS: Linux
Status: REPORTED
  Severity: minor
  Priority: NOR
 Component: scripting
  Assignee: kwrite-bugs-n...@kde.org
  Reporter: i...@njal.ch
  Target Milestone: ---

SUMMARY
***
C++ Namespace Alias is not recognized by diagnostics tool, flags all mentions
as errors.
***


STEPS TO REPRODUCE
1. Copy code:
#include 
namespace fs = std::filesystem;
using namespace std;
int main(){ fs::path somepath; somepath = "./somepath" }

OBSERVED RESULT
Diagnostic tool marks namespace alias as "expected namespace name", and all
following mentions of the alias as "use of undeclared identifier".

EXPECTED RESULT
The diagnostic tool recognizing the namespace alias,  and replacing it with the
namespace internally for the rest fo the code.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Linux Manjaro
KDE Plasma Version: 
5.27.7
KDE Frameworks Version: 
5.109.0
Qt Version: 
5.15.10

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 473988] C++ Namespace Alias is not recognized by diagnostics tool, flags all mentions as errors.

2023-08-31 Thread Njal
https://bugs.kde.org/show_bug.cgi?id=473988

Njal  changed:

   What|Removed |Added

 CC||i...@njal.ch

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 473988] C++ Namespace Alias is not recognized by diagnostics tool, flags all mentions as errors.

2023-08-31 Thread Njal
https://bugs.kde.org/show_bug.cgi?id=473988

--- Comment #1 from Njal  ---
Also, when using std::filesystem instead of fs in the code, clang reports "No
member named 'filesystem' in namespace 'std'".

-- 
You are receiving this mail because:
You are watching all bug changes.

[kate] [Bug 473988] C++ Namespace Alias is not recognized by diagnostics tool, flags all mentions as errors.

2023-08-31 Thread Njal
https://bugs.kde.org/show_bug.cgi?id=473988

--- Comment #3 from Njal  ---
(In reply to Waqar Ahmed from comment #2)

Oh okay, thanks for the link, and sorry for troubling you. I honestly did not
find anything googling the issue, i hope this report will serve that function
now :)

-- 
You are receiving this mail because:
You are watching all bug changes.