Demonstrate all features present in ukraine_map_data/ukraine.json
.
#include <assert.h> | |
#include <iostream> | |
#include "iwyu_getopt.h" | |
#include <getopt.h> // Don't ask me why such incude order. | |
void AssertGlobalValues(int result) { | |
// char *system_optarg = optarg; | |
// char *iwyu_optarg = iwyu::optarg; | |
// if (system_optarg != iwyu_optarg) { | |
// std::cout << "Place for breakpoint\n"; |
Thought process was the following: | |
- How do we know that we don't need to #include <string> in sub.h, sub.cc? | |
- Well, sub.h won't compile without #include "base.h" and base.h requires <string>. | |
- But how can we tell that base.h requires <string>? | |
- The same way we decide that <string> is a desired include for sub.h, sub.cc. There is a full use of symbol std::string in sub.h, sub.cc, and <string> provides symbol std::string. So you need just to check if there are full uses, forward-declaration uses in base.h (and all other included headers). | |
- ...(awkward silence) | |
- Also, have you noticed that usage of std::string in base.cc doesn't trigger recommendation to #include <string> in base.cc? | |
- Yeah, <string> is accessible in base.cc via base.h, it's an associated include. So no need to #include <string> both in base.h and base.cc. |
Demonstrate how you can highlight a specific region. Note: regions' names are in Ukrainian.
Demonstrate how you can display on a map data that changes during some period of time.
Please, note that this example is not a reliable source of information about 2014 Ukrainian Regional State Administration occupations. I've tried to be correct, but I might have done a few mistakes. See data_explanation.md
for more details.
Demonstrate how you can display on a map data that changes during some period of time and how to create a legend.
Please, note that this example is not a reliable source of information about 2014 Ukrainian Regional State Administration occupations. I've tried to be correct, but I might have done a few mistakes. See data_explanation.md
for more details.
Demonstrate how you can draw a path in SVG with animation. Move mouse over the text to see the effect. Based on technic described in Polygon feature design: SVG animations for fun and profit.
Digital clock like in Kyiv Metro, 1970s style. Reference image is provided by Metro Museum.
Steps to reproduce: | |
1. Create gist with non-empty description. | |
2. Add binary file to the gist. | |
3. Try to change description. |
// extern_template.h, .cc don't correspond to interface/implementation pattern. | |
// They have the same name so that IWYU prints recommendations for both files. | |
#include "extern_template.h" | |
#include "indirect.h" | |
class IndirectClass; | |
void foo() { | |
ExternTemplateClass<IndirectClass> et; |