FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
note/src/project/ProjectContext.cpp at dev · vixcpp/note · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
vixcpp
/
note
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
note
/
src
/
project
/
ProjectContext.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
52 lines (44 loc) · 960 Bytes
Breadcrumbs
note
/
src
/
project
/
ProjectContext.cpp
Copy path
File metadata and controls
52 lines (44 loc) · 960 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
*
*
* @file ProjectContext.cpp
* @author Gaspard Kirira
*
* Copyright 2026, Gaspard Kirira.
* All rights reserved.
* https://github.com/vixcpp/note
*
* Use of this source code is governed by a MIT license
* that can be found in the LICENSE file.
*
* Vix Note
*
*/
#
include
<
vix/note/project/ProjectContext.hpp
>
#
include
<
filesystem
>
namespace
vix
::note
{
bool
ProjectContext::has_project_root
()
const
noexcept
{
return
!projectRoot.
empty
();
}
bool
ProjectContext::has_manifest
()
const
noexcept
{
return
!manifestPath.
empty
();
}
bool
ProjectContext::has_deps
()
const
noexcept
{
return
!depsDirectory.
empty
();
}
bool
ProjectContext::has_include_paths
()
const
noexcept
{
return
!includePaths.
empty
();
}
std::filesystem::path
ProjectContext::effective_working_directory
()
const
{
if
(!workingDirectory.
empty
())
{
return
workingDirectory;
}
return
projectRoot;
}
}
Back
|
FazBrowse Home
|
New Git URL